package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.domain.StrategyLabel;
import cn.wolfcode.trip.base.query.LabelQueryObject;
import cn.wolfcode.trip.base.query.StrategyCommentQueryObject;

import java.util.List;

public interface StrategyCommentMapper {
    int insert(StrategyComment record);
    List<StrategyComment> selectByPrimaryKey(Long strategyId);
    List<StrategyComment> selectAll();
    int updateByPrimaryKey(StrategyComment record);
    List<StrategyComment> selectForList(StrategyCommentQueryObject qo);
    StrategyComment selectByComments(Long id);
    List<StrategyComment> selectByLabels(Long strategyId);
    List<StrategyLabel> selectLabelsByStrategyId(LabelQueryObject qo);
    /*按照userId查询攻略评论*/
    List<StrategyComment> selectForUser(StrategyCommentQueryObject qo);
    /*查询用户收藏的评论数*/
    int selectForCount(Long userId);
    List<StrategyComment> selectForHeadlines(StrategyCommentQueryObject qo);
}